package com.offcn.controller;

import com.offcn.service.OrderService;
import com.offcn.utils.Result;
import io.swagger.models.auth.In;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @program: offcnpe_parent
 * @description:
 * @author: xin yi
 * @create: 2021-07-21 10:41
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Reference
    private OrderService orderService;

    @RequestMapping("/m_submitOrder")
    public Result m_submitOrder(@RequestBody Map map){
        return orderService.m_submitOrder(map);
    }

    @RequestMapping("/m_findOrderById")
    public Result m_findOrderById(Integer id){
        return orderService.m_findOrderById(id);
    }

}
